<style>
    .article_content {
        margin: 35px 0;
        font-size: 15px;
        color: #555;
        line-height: 35px;
    }
    .markdown_views {
        font-family: 'microsoft yahei';
        font-size: 16px;
        color: #3f3f3f;
    }
    .markdown_views h2 {
        font-size: 2.15em;
    }
    .markdown_views h1, .markdown_views h2, .markdown_views h3, .markdown_views h4, .markdown_views h5, .markdown_views h6 {
        font-family: inherit;
        font-weight: 300;
        line-height: 1.1;
        color: inherit;
        margin: .8em 0;
        text-align: start;
    }

    .markdown_views * {
        box-sizing: border-box;
    }
</style>
<div id="article_content" class="article_content csdn-tracking-statistics" data-pid="blog" data-mod="popu_307" data-dsm="post" style="overflow: hidden;">
    <div class="markdown_views"><p>最近搜罗了几个IDEA上的插件, 感觉不错, 现记录下来:</p>



        <h2 id="1-翻译插件-translation"><a name="t0"></a>1. 翻译插件 Translation</h2>

        <p>在IDE - Settings - Plugins - Browse repositories 中搜索 Translation 并安装, 安装后使用非常简单, 右键选择对应菜单项即可: <br>
            <img src="http://upload-images.jianshu.io/upload_images/5469-927419866491a83b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="功能演示" title=""></p>

        <p>我一般用他两个功能:  <br>
            - 翻译, 就是中英翻译, 可以当词典用 <br>
            - 翻译替换, 就是将原文直接翻译替换, 用来帮我想变量名字非常有用: 起个中文名, 然后翻译替换就好了.</p>

        <p><img src="http://upload-images.jianshu.io/upload_images/5469-13741aed751964dd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="菜单" title=""></p>

        <p>它的翻译接口用的有道公共api, 会有次数限制, 这里可以添加自己的有道api key <br>
            <img src="http://upload-images.jianshu.io/upload_images/5469-c744b73e2445ac06.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="有道API" title=""></p>

        <p>各种快捷键设置以及更多详细功能可以参考官方文档: <br>
            <a href="http://yiiguxing.github.io/TranslationPlugin/" target="_blank">http://yiiguxing.github.io/TranslationPlugin/</a></p>



        <h2 id="2-log日志高亮-grep-console"><a name="t1"></a>2. log日志高亮 Grep Console</h2>

        <p>先看效果:</p>

        <p><img src="http://upload-images.jianshu.io/upload_images/5469-f015161325976397.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="Grep Console 效果" title=""></p>

        <p>同样在插件中心搜索安装 Grep Console, 重启ide即可在Other Settings里看到选项:</p>

        <p><img src="http://upload-images.jianshu.io/upload_images/5469-907d4e4ff830ad65.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="选项" title=""></p>

        <p>可以设置不同级别log的字体颜色和背景色.</p>

        <p>同时它还可以将打开任意文件并进行日志高亮, 不过对中文支持不太好…</p>

        <blockquote>
            <p>File Tailing:  <br>
                - Main menu | Tools | Open File in Console  <br>
                - Main Menu | Help | Tail (IntelliJ) Log in Console  <br>
                - Project View ToolWindow | right click context menu | Tail  <br>
                - Drag&amp;Drop “Tail File” panel in main toolbar  <br>
                - http and Windows context menu integration </p>
        </blockquote>

        <p>网站: <br>
            <a href="https://plugins.jetbrains.com/plugin/7125-grep-console" target="_blank">插件地址</a> <br>
            <a href="https://github.com/krasa/GrepConsole" target="_blank">Github</a></p>

        <hr>

        <p>还有几个插件: <br>
            -  <strong>AceJump</strong> 可以通过键盘跳转光标, 有空再介绍 <br>
            -  <strong>GsonFormat</strong>, 可将json转为实体类(<a href="https://github.com/zzz40500/GsonFormat/blob/master/README_CN.md" target="_blank">https://github.com/zzz40500/GsonFormat/blob/master/README_CN.md</a>)</p></div>
    <script type="text/javascript">
        $(function () {
            $('pre.prettyprint code').each(function () {
                var lines = $(this).text().split('\n').length;
                var $numbering = $('<ul/>').addClass('pre-numbering').hide();
                $(this).addClass('has-numbering').parent().append($numbering);
                for (i = 1; i <= lines; i++) {
                    $numbering.append($('<li/>').text(i));
                };
                $numbering.fadeIn(1700);
            });
        });
    </script>

</div>